//
//  UWHistoryManager.h
//  Urban Words
//
//  Created by sebastian on 2011-12-05.
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UWHistoryCell.h"

@interface UWHistoryManager : NSObject {
    NSMutableArray *allCells;
    id<SectionHeaderViewDelegate> historyTable;
}

- (id)initWithDelegate:(id<SectionHeaderViewDelegate>)delegate;
- (id)initGameHistoryWithGameid:(NSString *)gameid delegate:(id<SectionHeaderViewDelegate>)delegate;
- (id)initFriendHistoryWithFriend:(NSString *)fid delegate:(id<SectionHeaderViewDelegate>)delegate;
- (UWHistoryCell *)getHeaderAtSection:(NSInteger)section;
- (NSUInteger)count;
- (CGFloat)rowheightForHeaderAtSection:(NSInteger)section;
- (UILabel *)getDefFromHeaderAtSection:(NSInteger)section;
- (void)gotFriendHistory:(NSData *)data;
- (void)gotGameHistory:(NSData *)data;
@end
